Imports System.Web


Public Class cException

    Public Sub get_exception(ByVal eccezione As SqlClient.SqlException)
        HttpContext.Current.Session.Add("Errore", eccezione.Message)
        HttpContext.Current.Response.Redirect("../paginaErrori.aspx")
    End Sub

    Public Sub get_ex(ByVal eccezione As Exception)
        HttpContext.Current.Session.Add("Errore", eccezione.Message)
        HttpContext.Current.Response.Redirect("../paginaErrori.aspx")
    End Sub

End Class
